<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>音乐</title>
    <link rel="stylesheet" href="/static/zplayer/css/zplayer.min.css">
</head>
<body>
<div id="player" style="height: 500px;"></div>
<script type="text/javascript" src="/static/plugins/jquery/jquery.min.js"></script>
<script src="/static/zplayer/js/zplayer.min.js"></script>
<script>

var zplayerJson = {
    element: document.getElementById("player"),
    autoPlay:false,
    lrcStart: true,
    showLrc: true,
    listMaxHeight:400,
}

$.ajax({
       type: 'GET',
       url: '/music/findAll',
       async: false,
       success: function (data) {
      	 if(data&&data.code=='200'){
      		 zplayerJson.musics=data.result;
      	 }else{
      		 zplayerJson.musics=defMusics;
      	 }
       }
   });
var zp = new zplayer(zplayerJson);   
zp.init();

</script>
</body>
</html>
